// 多个reducer合并 中间件
import { createStore, combineReducers, applyMiddleware } from "redux";
import Home from "./reducers/home";
import Buy from "./reducers/buy";
import thunk from "redux-thunk";
const _thunk = applyMiddleware(thunk);
const reducer = combineReducers({ Home, Buy });
export default createStore(reducer, _thunk);
